<!--
 * @Author: 肖芬芳 1911683843@qq.com
 * @Date: 2022-11-17 11:40:09
 * @LastEditors: 肖芬芳 1911683843@qq.com
 * @LastEditTime: 2022-12-13 15:03:35
 * @FilePath: \blog\src\views\admin\home\components\ReturnIco.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <el-tooltip
    class="item"
    effect="dark"
    content="返回"
    placement="bottom-start"
  >
    <el-icon
      class="return-ico"
      @click="goback"
    >
      <ArrowLeft />
    </el-icon>
  </el-tooltip>
</template>

<script lang="ts" setup>
import {
  getCurrentInstance, // 获取当前对象，相当于this
} from 'vue'
// @ts-ignore
const {
  proxy
} = getCurrentInstance() as any
function goback () {
  proxy.$router.go(-1)
}
</script>

<style lang="scss">
.return-ico{
  width: 20px;
  vertical-align:middle;
  margin-right: 20px;
}
</style>
